using System.IO;

public class HeartbeatMessage : UDPMessageBase
{
	public bool tryEstablishConnection;

	public HeartbeatMessage()
	{
		type = MessageType.HeartbeatMessage;
	}

	public override void Deserialize(BinaryReader reader)
	{
		base.Deserialize(reader);
		tryEstablishConnection = reader.ReadBoolean();
	}

	public override void Serialize(BinaryWriter writer)
	{
		base.Serialize(writer);
		writer.Write(tryEstablishConnection);
	}
}
